package com.my.characters;

import java.io.*;

/**
 * @description:
 * @author: marshal
 * @date: 2021-08-24 10:49 AM
 *
 * Line-Oriented I/O
 *
 *
 */
public class CopyLines {
    public static void main(String[] args) throws IOException {
        BufferedReader br = null;
        PrintWriter pw = null;
        try {
            br = new BufferedReader(new FileReader("file/xanadu_line.txt"));
            pw = new PrintWriter(new FileWriter("file/characteroutput_line.txt"));

            String l;
            while ((l = br.readLine()) != null) {
                pw.println(l);
            }

        } finally {
            if (br != null) br.close();
            if (pw != null) pw.close();
        }
    }
}
